import {
  get,
  post,
  //postForm,
  del
} from '@/utils/http'
const packageName = `/back-api`

/**
 * 数字化监控管理
 */
// 获取开关操作记录列表
export function getDataHisSwitchList(params) {
  return get(`${packageName}/dataHisSwitch/getDataHisSwitchList`, params)
}
// 获取报警信息列表
export function getDataHisAlarmList(params) {
  return get(`${packageName}/dataHisSwitch/getDataHisAlarmList`, params)
}
// 获取进水,尾水控制箱
export function getInWaterTailWaterObjBoxs(params) {
  return get(`${packageName}/dataHisSwitch/getInWaterTailWaterObjBoxs`, params)
}
// 获取控制箱设备和鱼池下的设备列表
export function getObjBoxFishpondDeviceList(params) {
  return get(`${packageName}/dataHisSwitch/getObjBoxFishpondDeviceList`, params)
}

//获取设备历史数据
export function getDataHisDataChart(params) {
  return get(`${packageName}/dataHisSwitch/getDataHisDataChart`, params)
}
//获取设备历史数据列表
export function getDataHisDataList(params) {
  return get(`${packageName}/dataHisSwitch/getDataHisDataList`, params)
}
//获取监测标签数据
export function getTableMonitor(params) {
  return get(`${packageName}/dataHisSwitch/getTableMonitor`, params)
}
//获取设备告警记录列表
export function getDataDeviceAlarmList(params) {
  return get(`${packageName}/dataHisSwitch/getDataDeviceAlarmList`, params)
}
//获取控制箱推送告警记录列表
export function getDataBoxPushAlarmList(params) {
  return get(`${packageName}/dataHisSwitch/getDataBoxPushAlarmList`, params)
}
//获取排程任务告警记录列表
export function getDataScheduleTaskAlarmList(params) {
  return get(`${packageName}/dataHisSwitch/getDataScheduleTaskAlarmList`, params)
}
//获取最新告警记录（基地id）
export function getNewAlarmInfo(params) {
  return get(`${packageName}/dataHisSwitch/getNewAlarmInfo`, params)
}
//一图总览-获取进水）
export function getOneMapJinshuis(params) {
  return get(`${packageName}/oneBase/getOneMapJinshuis`, params)
}
//获取液氧设备（基地id）
export function getBoxYeyangDevices(params) {
  return get(`${packageName}/dataHisSwitch/getBoxYeyangDevices`, params)
}
//获取设备下拉（基地id）
export function getBoxs(params) {
  return get(`${packageName}/dataHisSwitch/getBoxs`, params)
}
//告警记录处理（记录id）
export function dealDataDeviceAlarm(params) {
  return post(`${packageName}/dataHisSwitch/dealDataDeviceAlarm`, params)
}
//云台控制
export function startObjDeviceVideo(params) {
  return post(`${packageName}/objDeviceVideo/startObjDeviceVideo`, params)
}
//获取摄像头列表
export function getObjDeviceVideoList(params) {
  return get(`${packageName}/objDeviceVideo/getObjDeviceVideoList`, params)
}
//获取摄像头
export function getObjDeviceVideo(params) {
  return get(`${packageName}/objDeviceVideo/getObjDeviceVideo`, params)
}
//获取鱼池投料历史列表
export function getDataHisFeederList(params) {
  return get(`${packageName}/dataHisFeeder/getDataHisFeederList`, params)
}
//获取鱼池投料总量
export function getDataHisFeederCount(params) {
  return get(`${packageName}/dataHisFeeder/getDataHisFeederCount`, params)
}
//获取鱼池投料历史图表
export function getDataHisFeederChart(params) {
  return get(`${packageName}/dataHisFeeder/getDataHisFeederChart`, params)
}
//获取离线,告警次数图表
export function getAlarmAndOnlineDataChart(params) {
  return get(`${packageName}/configFishpondDeviceNumericalRelation/getAlarmAndOnlineDataChart`, params)
}
//获取离线,告警次数列表
export function getAlarmAndOnlineDataList(params) {
  return get(`${packageName}/configFishpondDeviceNumericalRelation/getAlarmAndOnlineDataList`, params)
}
//删除摄像头`
export function delObjDeviceVideo(params) {
  return del(`${packageName}/objDeviceVideo/delObjDeviceVideo`, params)``
}
//保存摄像头
export function saveObjDeviceVideo(params) {
  return post(`${packageName}/objDeviceVideo/saveObjDeviceVideo`, params)
}
//获取离线,告警次数列表
export function getDataHisVideoStatusList(params) {
  return get(`${packageName}/objDeviceVideo/getDataHisVideoStatusList`, params)
}
//获取鱼池投喂量总量（基地下全部鱼池）
export function getObjFishpondTotal(params) {
  return get(`${packageName}/objFishpond/getObjFishpondTotal`, params)
}
//获取鱼池投喂量列表
export function getObjFishpondTotalList(params) {
  return get(`${packageName}/objFishpond/getObjFishpondTotalList`, params)
}
//获取水阀告警记录列表
export function getDataHisValveAlarmList(params) {
  return get(`${packageName}/dataHisValveAlarm/getDataHisValveAlarmList`, params)
}
